package com.quick.android.download;

import java.util.List;
/**
 * 下载数据类
 * @author quick
 *
 */
public class FileInfoBean {
	/** 下载ID */
	public int id;
	/** 下载的url **/
	public String url;
	/** 本地存储路径 **/
	public String path;
	/** 文件长度 **/
	public long length;
	/** 下载线程数量 **/
	public int threads;
	/** 是否支持断点续传 **/
	public boolean range;
	/** 是否成功 **/
	public boolean isSucess;
	/** 如果长度不一样则重新下载 **/
	public boolean again;
	/** 是否为APP更新 */
	public boolean isUpdate;
	/** 对应的通知信息 */
	public NotifiInfoBean notifi;
	/** 已经下载的大小 */
	public long loadedLength;
	/** 真实下载地址 */
	public String real_url;
	/** 对应的下载线程数据集合 */
	public List<ThreadInfoBean> threadsEntities;
	/** 对应的NofiticationHelper */
	public NotificationHelper helper;

	@Override
	public String toString() {
		return "FileEntity [id=" + id + ", url=" + url + ", path=" + path
				+ ", length=" + length + ", threads=" + threads + ", range="
				+ range + ", isSucess=" + isSucess + ", again=" + again
				+ ", isUpdate=" + isUpdate + ", notfi=" + notifi
				+ ", loadedLength=" + loadedLength + ", real_url=" + real_url
				+ ", threadsEntities=" + threadsEntities + ", helper=" + helper
				+ "]";
	}
}
